package com.ltf.entity;

import java.util.Date;

//成绩表带学期
public class Mark {
    private Integer id;
    private XUser xUser; //拿学生账号
    private Course course; //拿课程编号
    private Term term;    //拿学期ID
    private Double score; //综合成绩
    private Date tpost;  //登分时间
    private Double usually;//平时分
    private Double fraction;//考试分

    public Mark() {
        xUser=new XUser();
        course=new Course();
        term=new Term();
    }

    public Mark(Integer id, XUser xUser, Course course, Term term, Double score, Date tpost, Double usually, Double fraction) {
        this.id = id;
        this.xUser = xUser;
        this.course = course;
        this.term = term;
        this.score = score;
        this.tpost = tpost;
        this.usually = usually;
        this.fraction = fraction;
    }

    public Double getUsually() {
        return usually;
    }

    public void setUsually(Double usually) {
        this.usually = usually;
    }

    public Double getFraction() {
        return fraction;
    }

    public void setFraction(Double fraction) {
        this.fraction = fraction;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public XUser getxUser() {
        return xUser;
    }

    public void setxUser(XUser xUser) {
        this.xUser = xUser;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Term getTerm() {
        return term;
    }

    public void setTerm(Term term) {
        this.term = term;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Date getTpost() {
        return tpost;
    }

    public void setTpost(Date tpost) {
        this.tpost = tpost;
    }

    @Override
    public String toString() {
        return "Mark{" +
                "id=" + id +
                ", xUser=" + xUser +
                ", course=" + course +
                ", term=" + term +
                ", score=" + score +
                ", tpost=" + tpost +
                ", usually=" + usually +
                ", fraction=" + fraction +
                '}';
    }
}
